import { createApp } from 'vue';
import router from './router'
import packages from '~/index';

export default (component: any) => {
    const app = createApp(component);
    app.use(packages).use(router);
    return app;
}